<?php
include 'cabecalhoAdm.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $metodo = "cadastro";
    require_once '../../Controller/Controller.Publicidade.php';
}
?>

<a href="admin.php">Voltar</a>
<div class="containers">
    <h1>Adicionar Publidade</h1>
    <form class="form-admin" action="<?php $_SERVER['PHP_SELF']; ?>" method="POST" enctype="multipart/form-data">
        <label>Imagem:</label><input type="file" name="imagem"/><br>
        <label>Link:</label><input type="text" name="link"/><br>
        <label>Tipo:</label>
        <select name="tipo">
            <option value="b">Banner principal</option>
            <option value="l">Menu lateral</option>
        </select>
        </div>
        <input type="SUBMIT" value="Salvar" class="bt_buscar"/>
        <?php
        if (isset($erro)) {
            echo $erro;
        } elseif (isset($msg)) {
            echo $msg;
        }
        ?>
    </form>
</div>
<div id="rodape">		
</div>
</div>
</body>

</html>